﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<ProjectFitus.Models.TextContentCategory>>" %>
<table id="category-item-table">
<tbody>

    <% if (Model != null)
       {
               var iter = Model.GetEnumerator();
               foreach (var item in Model)
               {
                   
        %>
                   <tr>
                        <td>
                            <a href="Article/Index/<%: item.id %>"><%: item.categoryTitle %></a>
                            <br />
                            <%: item.categoryDesc %>
                        </td>
                        <td>
                        <% if (iter.MoveNext())
                           {                               
                         %>
                            <a href="Article/Index/<%: item.id %>"><%: item.categoryTitle %></a>
                            <br />
                            <%: item.categoryDesc %>
                        <% } %>
                        </td>
                    </tr>
        <% 
               }
     }      
    %>
</tbody>
</table>

